Make ``writer.write_headers`` a coroutine.